import { createWebHistory, createRouter } from 'vue-router'

import HomeView from '../src/home/index.vue'

const routes = [
  { path: '/', redirect: '/home' },
  { path: '/login', component: () => import('../src/login/index.vue') },
  { path: '/home', name: 'Home', component: HomeView },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router